<template>
  <Home title="这a是app组件传递的值"></Home>
  <testData></testData>
  <testReactive></testReactive>
</template>


<script setup>/* 在script上加setup属性  组件编译的过程中的代码运行是在setup函数中 
所有es模块导出都认为暴露给上下文的值 并且包含在setup()返回对象中 */
import HelloWorld from './components/HelloWorld.vue'
import Home from './components/Home.vue'
import testData from './components/testData.vue'
import testReactive from './components/testReactive.vue'

// This starter template is using Vue 3 experimental <script setup> SFCs
// Check out https://github.com/vuejs/rfcs/blob/script-setup-2/active-rfcs/0000-script-setup.md
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>